package com.sk.sourcecircle.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by sk on 2017/12/17.
 */

public class UserInfo {


    /**
     * code : 200
     * data : {"user_id":17,"phone":"13661503762","nickname":"13661503762","token":"ff37b192bb98a5f7691c9512b0ee9717","company":null,"role":null,"hx_login":"0b7844a0adeef9c891cc7383c4302fc7","hx_pass":"98749b1ee5530977f95c582414e56dbb","sincerity":0,"introduce":"646","province_id":0,"city_id":0,"district_id":0,"address":"13661503762","balance":"0.00","score":0,"add_auth":0,"show_auth":0,"is_service":0}
     */

    private int code;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {
        /**
         * user_id : 17
         * phone : 13661503762
         * nickname : 13661503762
         * token : ff37b192bb98a5f7691c9512b0ee9717
         * company : null
         * role : null
         * hx_login : 0b7844a0adeef9c891cc7383c4302fc7
         * hx_pass : 98749b1ee5530977f95c582414e56dbb
         * sincerity : 0
         * introduce : 646
         * province_id : 0
         * city_id : 0
         * district_id : 0
         * address : 13661503762
         * balance : 0.00
         * score : 0
         * add_auth : 0
         * show_auth : 0
         * is_service : 0
         */

        private int user_id;
        private String phone;
        private String nickname;
        private String token;
        private String company;
        private String role;
        private String hx_login;
        private String hx_pass;
        private int sincerity;
        private String introduce;
        private int province_id;
        private int city_id;
        private int district_id;
        private String address;
        private String balance;
        private int score;
        private int add_auth;
        private int show_auth;
        private int is_service;
        private String head_url;

        public String getHead_url() {
            return head_url;
        }

        public void setHead_url(String head_url) {
            this.head_url = head_url;
        }

        public int getUser_id() {
            return user_id;
        }

        public void setUser_id(int user_id) {
            this.user_id = user_id;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public String getCompany() {
            return company;
        }

        public void setCompany(String company) {
            this.company = company;
        }

        public String getRole() {
            return role;
        }

        public void setRole(String role) {
            this.role = role;
        }

        public String getHx_login() {
            return hx_login;
        }

        public void setHx_login(String hx_login) {
            this.hx_login = hx_login;
        }

        public String getHx_pass() {
            return hx_pass;
        }

        public void setHx_pass(String hx_pass) {
            this.hx_pass = hx_pass;
        }

        public int getSincerity() {
            return sincerity;
        }

        public void setSincerity(int sincerity) {
            this.sincerity = sincerity;
        }

        public String getIntroduce() {
            return introduce;
        }

        public void setIntroduce(String introduce) {
            this.introduce = introduce;
        }

        public int getProvince_id() {
            return province_id;
        }

        public void setProvince_id(int province_id) {
            this.province_id = province_id;
        }

        public int getCity_id() {
            return city_id;
        }

        public void setCity_id(int city_id) {
            this.city_id = city_id;
        }

        public int getDistrict_id() {
            return district_id;
        }

        public void setDistrict_id(int district_id) {
            this.district_id = district_id;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getBalance() {
            return balance;
        }

        public void setBalance(String balance) {
            this.balance = balance;
        }

        public int getScore() {
            return score;
        }

        public void setScore(int score) {
            this.score = score;
        }

        public int getAdd_auth() {
            return add_auth;
        }

        public void setAdd_auth(int add_auth) {
            this.add_auth = add_auth;
        }

        public int getShow_auth() {
            return show_auth;
        }

        public void setShow_auth(int show_auth) {
            this.show_auth = show_auth;
        }

        public int getIs_service() {
            return is_service;
        }

        public void setIs_service(int is_service) {
            this.is_service = is_service;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.user_id);
            dest.writeString(this.phone);
            dest.writeString(this.nickname);
            dest.writeString(this.token);
            dest.writeString(this.company);
            dest.writeString(this.role);
            dest.writeString(this.hx_login);
            dest.writeString(this.hx_pass);
            dest.writeInt(this.sincerity);
            dest.writeString(this.introduce);
            dest.writeInt(this.province_id);
            dest.writeInt(this.city_id);
            dest.writeInt(this.district_id);
            dest.writeString(this.address);
            dest.writeString(this.balance);
            dest.writeInt(this.score);
            dest.writeInt(this.add_auth);
            dest.writeInt(this.show_auth);
            dest.writeInt(this.is_service);
            dest.writeString(this.head_url);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.user_id = in.readInt();
            this.phone = in.readString();
            this.nickname = in.readString();
            this.token = in.readString();
            this.company = in.readString();
            this.role = in.readString();
            this.hx_login = in.readString();
            this.hx_pass = in.readString();
            this.sincerity = in.readInt();
            this.introduce = in.readString();
            this.province_id = in.readInt();
            this.city_id = in.readInt();
            this.district_id = in.readInt();
            this.address = in.readString();
            this.balance = in.readString();
            this.score = in.readInt();
            this.add_auth = in.readInt();
            this.show_auth = in.readInt();
            this.is_service = in.readInt();
            this.head_url = in.readString();
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }
}
